<?php 
$goodsid = (int)$_GET['goodsid'];
if ($goodsid==0)
{
	echo echojson('no goodsid',0,'');exit;
}
signcheck(array($appid,$goodsid));
$sql = "select name,pics,price,desp from tttj.goods_zm where id=$goodsid limit 1";
$goodsinfo = getonerecord($sql);	
$goodsinfo['pics'] = unserialize($goodsinfo['pics']);	
$price = sprintf("%01.2f",$goodsinfo['price']);
$goodsinfo['pricel'] = floor($goodsinfo['price']/1);
$goodsinfo['pricer'] = str_pad($goodsinfo['price']*100%100, 2, '0', STR_PAD_LEFT);
$tpl->assign('goodsinfo',$goodsinfo);
$tpl->display("{$tp}.html");
?>